/**
 * This is my code.
 *
 * $Id$
 */
package fi.jab.esb.config.xml.impl;

import fi.jab.esb.config.xml.*;

import java.math.BigInteger;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

import org.eclipse.emf.ecore.xml.type.XMLTypeFactory;
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class XmlFactoryImpl extends EFactoryImpl implements XmlFactory
{
  /**
   * Creates the default factory implementation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static XmlFactory init()
  {
    try
    {
      XmlFactory theXmlFactory = (XmlFactory)EPackage.Registry.INSTANCE.getEFactory("http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"); 
      if (theXmlFactory != null)
      {
        return theXmlFactory;
      }
    }
    catch (Exception exception)
    {
      EcorePlugin.INSTANCE.log(exception);
    }
    return new XmlFactoryImpl();
  }

  /**
   * Creates an instance of the factory.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public XmlFactoryImpl()
  {
    super();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public EObject create(EClass eClass)
  {
    switch (eClass.getClassifierID())
    {
      case XmlPackage.ACTIONS_TYPE: return createActionsType();
      case XmlPackage.ACTION_TYPE: return createActionType();
      case XmlPackage.ACTIVATION_CONFIG_TYPE: return createActivationConfigType();
      case XmlPackage.BUS: return createBus();
      case XmlPackage.BUS_PROVIDER: return createBusProvider();
      case XmlPackage.BUS_PROVIDER_TYPE: return createBusProviderType();
      case XmlPackage.CRON_SCHEDULE_TYPE: return createCronScheduleType();
      case XmlPackage.DOCUMENT_ROOT: return createDocumentRoot();
      case XmlPackage.FS_BUS_TYPE: return createFsBusType();
      case XmlPackage.FS_LISTENER_TYPE: return createFsListenerType();
      case XmlPackage.FS_MESSAGE_FILTER_TYPE: return createFsMessageFilterType();
      case XmlPackage.FS_PROVIDER_TYPE: return createFsProviderType();
      case XmlPackage.FTP_BUS_TYPE: return createFtpBusType();
      case XmlPackage.FTP_LISTENER_TYPE: return createFtpListenerType();
      case XmlPackage.FTP_MESSAGE_FILTER_TYPE: return createFtpMessageFilterType();
      case XmlPackage.FTP_PROVIDER_TYPE: return createFtpProviderType();
      case XmlPackage.GROOVY_LISTENER_TYPE: return createGroovyListenerType();
      case XmlPackage.HIBERNATE_BUS_TYPE: return createHibernateBusType();
      case XmlPackage.HIBERNATE_LISTENER_TYPE: return createHibernateListenerType();
      case XmlPackage.HIBERNATE_MESSAGE_FILTER_TYPE: return createHibernateMessageFilterType();
      case XmlPackage.HIBERNATE_PROVIDER_TYPE: return createHibernateProviderType();
      case XmlPackage.JBOSSESB_TYPE: return createJbossesbType();
      case XmlPackage.JBR_BUS_TYPE: return createJbrBusType();
      case XmlPackage.JBR_LISTENER_TYPE: return createJbrListenerType();
      case XmlPackage.JBR_PROVIDER_TYPE: return createJbrProviderType();
      case XmlPackage.JCA_GATEWAY_TYPE: return createJcaGatewayType();
      case XmlPackage.JMS_BUS_TYPE: return createJmsBusType();
      case XmlPackage.JMS_JCA_PROVIDER_TYPE: return createJmsJcaProviderType();
      case XmlPackage.JMS_LISTENER_TYPE: return createJmsListenerType();
      case XmlPackage.JMS_MESSAGE_FILTER_TYPE: return createJmsMessageFilterType();
      case XmlPackage.JMS_PROVIDER_TYPE: return createJmsProviderType();
      case XmlPackage.LISTENER: return createListener();
      case XmlPackage.LISTENERS_TYPE: return createListenersType();
      case XmlPackage.PROPERTY_TYPE: return createPropertyType();
      case XmlPackage.PROVIDERS_TYPE: return createProvidersType();
      case XmlPackage.SCHEDULED_LISTENER_TYPE: return createScheduledListenerType();
      case XmlPackage.SCHEDULE_PROVIDER_TYPE: return createScheduleProviderType();
      case XmlPackage.SERVICES_TYPE: return createServicesType();
      case XmlPackage.SERVICE_TYPE: return createServiceType();
      case XmlPackage.SIMPLE_SCHEDULE_TYPE: return createSimpleScheduleType();
      case XmlPackage.SQL_BUS_TYPE: return createSqlBusType();
      case XmlPackage.SQL_LISTENER_TYPE: return createSqlListenerType();
      case XmlPackage.SQL_MESSAGE_FILTER_TYPE: return createSqlMessageFilterType();
      case XmlPackage.SQL_PROVIDER_TYPE: return createSqlProviderType();
      default:
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
    }
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public Object createFromString(EDataType eDataType, String initialValue)
  {
    switch (eDataType.getClassifierID())
    {
      case XmlPackage.DEST_TYPE_TYPE:
        return createDestTypeTypeFromString(eDataType, initialValue);
      case XmlPackage.MEP_TYPE:
        return createMepTypeFromString(eDataType, initialValue);
      case XmlPackage.PROTOCOL_TYPE:
        return createProtocolTypeFromString(eDataType, initialValue);
      case XmlPackage.PROTOCOL_TYPE1:
        return createProtocolType1FromString(eDataType, initialValue);
      case XmlPackage.DEST_TYPE_TYPE_OBJECT:
        return createDestTypeTypeObjectFromString(eDataType, initialValue);
      case XmlPackage.MEP_TYPE_OBJECT:
        return createMepTypeObjectFromString(eDataType, initialValue);
      case XmlPackage.POLL_FREQUENCY_SECONDS_TYPE:
        return createPollFrequencySecondsTypeFromString(eDataType, initialValue);
      case XmlPackage.PROTOCOL_TYPE_OBJECT:
        return createProtocolTypeObjectFromString(eDataType, initialValue);
      case XmlPackage.PROTOCOL_TYPE_OBJECT1:
        return createProtocolTypeObject1FromString(eDataType, initialValue);
      default:
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
    }
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String convertToString(EDataType eDataType, Object instanceValue)
  {
    switch (eDataType.getClassifierID())
    {
      case XmlPackage.DEST_TYPE_TYPE:
        return convertDestTypeTypeToString(eDataType, instanceValue);
      case XmlPackage.MEP_TYPE:
        return convertMepTypeToString(eDataType, instanceValue);
      case XmlPackage.PROTOCOL_TYPE:
        return convertProtocolTypeToString(eDataType, instanceValue);
      case XmlPackage.PROTOCOL_TYPE1:
        return convertProtocolType1ToString(eDataType, instanceValue);
      case XmlPackage.DEST_TYPE_TYPE_OBJECT:
        return convertDestTypeTypeObjectToString(eDataType, instanceValue);
      case XmlPackage.MEP_TYPE_OBJECT:
        return convertMepTypeObjectToString(eDataType, instanceValue);
      case XmlPackage.POLL_FREQUENCY_SECONDS_TYPE:
        return convertPollFrequencySecondsTypeToString(eDataType, instanceValue);
      case XmlPackage.PROTOCOL_TYPE_OBJECT:
        return convertProtocolTypeObjectToString(eDataType, instanceValue);
      case XmlPackage.PROTOCOL_TYPE_OBJECT1:
        return convertProtocolTypeObject1ToString(eDataType, instanceValue);
      default:
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
    }
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ActionsType createActionsType()
  {
    ActionsTypeImpl actionsType = new ActionsTypeImpl();
    return actionsType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ActionType createActionType()
  {
    ActionTypeImpl actionType = new ActionTypeImpl();
    return actionType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ActivationConfigType createActivationConfigType()
  {
    ActivationConfigTypeImpl activationConfigType = new ActivationConfigTypeImpl();
    return activationConfigType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Bus createBus()
  {
    BusImpl bus = new BusImpl();
    return bus;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public BusProvider createBusProvider()
  {
    BusProviderImpl busProvider = new BusProviderImpl();
    return busProvider;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public BusProviderType createBusProviderType()
  {
    BusProviderTypeImpl busProviderType = new BusProviderTypeImpl();
    return busProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public CronScheduleType createCronScheduleType()
  {
    CronScheduleTypeImpl cronScheduleType = new CronScheduleTypeImpl();
    return cronScheduleType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DocumentRoot createDocumentRoot()
  {
    DocumentRootImpl documentRoot = new DocumentRootImpl();
    return documentRoot;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FsBusType createFsBusType()
  {
    FsBusTypeImpl fsBusType = new FsBusTypeImpl();
    return fsBusType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FsListenerType createFsListenerType()
  {
    FsListenerTypeImpl fsListenerType = new FsListenerTypeImpl();
    return fsListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FsMessageFilterType createFsMessageFilterType()
  {
    FsMessageFilterTypeImpl fsMessageFilterType = new FsMessageFilterTypeImpl();
    return fsMessageFilterType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FsProviderType createFsProviderType()
  {
    FsProviderTypeImpl fsProviderType = new FsProviderTypeImpl();
    return fsProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FtpBusType createFtpBusType()
  {
    FtpBusTypeImpl ftpBusType = new FtpBusTypeImpl();
    return ftpBusType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FtpListenerType createFtpListenerType()
  {
    FtpListenerTypeImpl ftpListenerType = new FtpListenerTypeImpl();
    return ftpListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FtpMessageFilterType createFtpMessageFilterType()
  {
    FtpMessageFilterTypeImpl ftpMessageFilterType = new FtpMessageFilterTypeImpl();
    return ftpMessageFilterType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public FtpProviderType createFtpProviderType()
  {
    FtpProviderTypeImpl ftpProviderType = new FtpProviderTypeImpl();
    return ftpProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public GroovyListenerType createGroovyListenerType()
  {
    GroovyListenerTypeImpl groovyListenerType = new GroovyListenerTypeImpl();
    return groovyListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public HibernateBusType createHibernateBusType()
  {
    HibernateBusTypeImpl hibernateBusType = new HibernateBusTypeImpl();
    return hibernateBusType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public HibernateListenerType createHibernateListenerType()
  {
    HibernateListenerTypeImpl hibernateListenerType = new HibernateListenerTypeImpl();
    return hibernateListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public HibernateMessageFilterType createHibernateMessageFilterType()
  {
    HibernateMessageFilterTypeImpl hibernateMessageFilterType = new HibernateMessageFilterTypeImpl();
    return hibernateMessageFilterType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public HibernateProviderType createHibernateProviderType()
  {
    HibernateProviderTypeImpl hibernateProviderType = new HibernateProviderTypeImpl();
    return hibernateProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JbossesbType createJbossesbType()
  {
    JbossesbTypeImpl jbossesbType = new JbossesbTypeImpl();
    return jbossesbType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JbrBusType createJbrBusType()
  {
    JbrBusTypeImpl jbrBusType = new JbrBusTypeImpl();
    return jbrBusType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JbrListenerType createJbrListenerType()
  {
    JbrListenerTypeImpl jbrListenerType = new JbrListenerTypeImpl();
    return jbrListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JbrProviderType createJbrProviderType()
  {
    JbrProviderTypeImpl jbrProviderType = new JbrProviderTypeImpl();
    return jbrProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JcaGatewayType createJcaGatewayType()
  {
    JcaGatewayTypeImpl jcaGatewayType = new JcaGatewayTypeImpl();
    return jcaGatewayType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JmsBusType createJmsBusType()
  {
    JmsBusTypeImpl jmsBusType = new JmsBusTypeImpl();
    return jmsBusType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JmsJcaProviderType createJmsJcaProviderType()
  {
    JmsJcaProviderTypeImpl jmsJcaProviderType = new JmsJcaProviderTypeImpl();
    return jmsJcaProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JmsListenerType createJmsListenerType()
  {
    JmsListenerTypeImpl jmsListenerType = new JmsListenerTypeImpl();
    return jmsListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JmsMessageFilterType createJmsMessageFilterType()
  {
    JmsMessageFilterTypeImpl jmsMessageFilterType = new JmsMessageFilterTypeImpl();
    return jmsMessageFilterType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public JmsProviderType createJmsProviderType()
  {
    JmsProviderTypeImpl jmsProviderType = new JmsProviderTypeImpl();
    return jmsProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Listener createListener()
  {
    ListenerImpl listener = new ListenerImpl();
    return listener;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ListenersType createListenersType()
  {
    ListenersTypeImpl listenersType = new ListenersTypeImpl();
    return listenersType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public PropertyType createPropertyType()
  {
    PropertyTypeImpl propertyType = new PropertyTypeImpl();
    return propertyType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ProvidersType createProvidersType()
  {
    ProvidersTypeImpl providersType = new ProvidersTypeImpl();
    return providersType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ScheduledListenerType createScheduledListenerType()
  {
    ScheduledListenerTypeImpl scheduledListenerType = new ScheduledListenerTypeImpl();
    return scheduledListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ScheduleProviderType createScheduleProviderType()
  {
    ScheduleProviderTypeImpl scheduleProviderType = new ScheduleProviderTypeImpl();
    return scheduleProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ServicesType createServicesType()
  {
    ServicesTypeImpl servicesType = new ServicesTypeImpl();
    return servicesType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ServiceType createServiceType()
  {
    ServiceTypeImpl serviceType = new ServiceTypeImpl();
    return serviceType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public SimpleScheduleType createSimpleScheduleType()
  {
    SimpleScheduleTypeImpl simpleScheduleType = new SimpleScheduleTypeImpl();
    return simpleScheduleType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public SqlBusType createSqlBusType()
  {
    SqlBusTypeImpl sqlBusType = new SqlBusTypeImpl();
    return sqlBusType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public SqlListenerType createSqlListenerType()
  {
    SqlListenerTypeImpl sqlListenerType = new SqlListenerTypeImpl();
    return sqlListenerType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public SqlMessageFilterType createSqlMessageFilterType()
  {
    SqlMessageFilterTypeImpl sqlMessageFilterType = new SqlMessageFilterTypeImpl();
    return sqlMessageFilterType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public SqlProviderType createSqlProviderType()
  {
    SqlProviderTypeImpl sqlProviderType = new SqlProviderTypeImpl();
    return sqlProviderType;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DestTypeType createDestTypeTypeFromString(EDataType eDataType, String initialValue)
  {
    DestTypeType result = DestTypeType.get(initialValue);
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
    return result;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertDestTypeTypeToString(EDataType eDataType, Object instanceValue)
  {
    return instanceValue == null ? null : instanceValue.toString();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public MepType createMepTypeFromString(EDataType eDataType, String initialValue)
  {
    MepType result = MepType.get(initialValue);
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
    return result;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertMepTypeToString(EDataType eDataType, Object instanceValue)
  {
    return instanceValue == null ? null : instanceValue.toString();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ProtocolType createProtocolTypeFromString(EDataType eDataType, String initialValue)
  {
    ProtocolType result = ProtocolType.get(initialValue);
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
    return result;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertProtocolTypeToString(EDataType eDataType, Object instanceValue)
  {
    return instanceValue == null ? null : instanceValue.toString();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ProtocolType1 createProtocolType1FromString(EDataType eDataType, String initialValue)
  {
    ProtocolType1 result = ProtocolType1.get(initialValue);
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
    return result;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertProtocolType1ToString(EDataType eDataType, Object instanceValue)
  {
    return instanceValue == null ? null : instanceValue.toString();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public DestTypeType createDestTypeTypeObjectFromString(EDataType eDataType, String initialValue)
  {
    return createDestTypeTypeFromString(XmlPackage.Literals.DEST_TYPE_TYPE, initialValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertDestTypeTypeObjectToString(EDataType eDataType, Object instanceValue)
  {
    return convertDestTypeTypeToString(XmlPackage.Literals.DEST_TYPE_TYPE, instanceValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public MepType createMepTypeObjectFromString(EDataType eDataType, String initialValue)
  {
    return createMepTypeFromString(XmlPackage.Literals.MEP_TYPE, initialValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertMepTypeObjectToString(EDataType eDataType, Object instanceValue)
  {
    return convertMepTypeToString(XmlPackage.Literals.MEP_TYPE, instanceValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public BigInteger createPollFrequencySecondsTypeFromString(EDataType eDataType, String initialValue)
  {
    return (BigInteger)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.INTEGER, initialValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertPollFrequencySecondsTypeToString(EDataType eDataType, Object instanceValue)
  {
    return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.INTEGER, instanceValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ProtocolType createProtocolTypeObjectFromString(EDataType eDataType, String initialValue)
  {
    return createProtocolTypeFromString(XmlPackage.Literals.PROTOCOL_TYPE, initialValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertProtocolTypeObjectToString(EDataType eDataType, Object instanceValue)
  {
    return convertProtocolTypeToString(XmlPackage.Literals.PROTOCOL_TYPE, instanceValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public ProtocolType1 createProtocolTypeObject1FromString(EDataType eDataType, String initialValue)
  {
    return createProtocolType1FromString(XmlPackage.Literals.PROTOCOL_TYPE1, initialValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String convertProtocolTypeObject1ToString(EDataType eDataType, Object instanceValue)
  {
    return convertProtocolType1ToString(XmlPackage.Literals.PROTOCOL_TYPE1, instanceValue);
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public XmlPackage getXmlPackage()
  {
    return (XmlPackage)getEPackage();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @deprecated
   * @generated
   */
  @Deprecated
  public static XmlPackage getPackage()
  {
    return XmlPackage.eINSTANCE;
  }

} //XmlFactoryImpl
